<?php
$r=json_decode($_REQUEST['json'],true);
$obj->name=$r["name"];
$obj->age=$r["age"];
echo json_encode($obj);

//echo $_REQUEST['json'];
?>
